load("@io_bazel_rules_go//go:def.bzl", "go_test")

go_test(
    name = "tests_test",
    timeout = "short",
    srcs = [
        "main_test.go",
        "tidb_serial_test.go",
        "tidb_test.go",
    ],
    flaky = True,
    shard_count = 50,
    deps = [
        "//config",
        "//ddl/util",
        "//domain",
        "//extension",
        "//kv",
        "//metrics",
        "//parser",
        "//parser/ast",
        "//parser/auth",
        "//parser/mysql",
        "//server",
        "//server/internal/column",
        "//server/internal/resultset",
        "//server/internal/testserverclient",
        "//server/internal/testutil",
        "//server/internal/util",
        "//session",
        "//sessionctx/variable",
        "//store/mockstore",
        "//store/mockstore/unistore",
        "//testkit",
        "//testkit/testsetup",
        "//util",
        "//util/cpuprofile",
        "//util/plancodec",
        "//util/resourcegrouptag",
        "//util/topsql",
        "//util/topsql/collector",
        "//util/topsql/collector/mock",
        "//util/topsql/state",
        "//util/topsql/stmtstats",
        "@com_github_go_sql_driver_mysql//:mysql",
        "@com_github_pingcap_errors//:errors",
        "@com_github_pingcap_failpoint//:failpoint",
        "@com_github_stretchr_testify//require",
        "@com_github_tikv_client_go_v2//tikv",
        "@com_github_tikv_client_go_v2//tikvrpc",
        "@io_opencensus_go//stats/view",
        "@org_uber_go_goleak//:goleak",
    ],
)
